package cc.dd.marketing.coupon.handler;


import cc.dd.marketing.api.constant.FunctionCodeEnum;
import cc.dd.marketing.common.ContextParam;
import cc.dd.marketing.core.AbstractBusinessHandler;
import cc.dd.marketing.core.annotation.CouponTemplateMapper;
import cc.dd.marketing.core.annotation.FunctionMapper;
import cc.dd.marketing.core.constant.CouponTemplateEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 优惠券
 *
 * @author dongsufeng
 * @date 2022/9/9 11:57 AM
 */
@Component
@CouponTemplateMapper({CouponTemplateEnum.DEFAULT})
@FunctionMapper({FunctionCodeEnum.FREEZE, FunctionCodeEnum.UNFREEZE, FunctionCodeEnum.USE})
@Slf4j
public class CouponOperationHandler extends AbstractBusinessHandler {


    @Override
    protected void doAction(ContextParam contextParam) {
        log.info("使用优惠券");
    }
}
